From: Florian Müllner Date: Mon, 26 May 2025 12:08:31 +0000 (+0200) Subject: swipeTracker: Check all modifiers for modifier-scroll X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~124^2^2~83 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=00c845c2724909ea61b7440b56a0e4ad8787b2fe;p=gnome-shell.git swipeTracker: Check all modifiers for modifier-scroll It is possible that more than one modifiers is configured as "button modifier". While mutter should only let through scroll events when all modifiers are present, it doesn't hurt to check for it on the gnome-shell side as well. Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/4129 Part-of: --- diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index 43a4cbadf..d3df86ab3 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -358,7 +358,7 @@ const ScrollGesture = GObject.registerClass({ return false; if (!this._began && this.scrollModifiers !== 0 && - (event.get_state() & this.scrollModifiers) === 0) + (event.get_state() & this.scrollModifiers) !== this.scrollModifiers) return false; return true;